<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>判断数据的类型</title>

    <style>
        #box {
            width: 100px;
            height: 100px;
        }
    </style>

    <!-- 
        问题： typeof 是为何区分不开 Object  Array

     -->
</head>

<body>

    <div id="box"></div>


    <script>

        const ma=[]
       ma.value=[1,4,6]
       ma.value1=[1,2,4]
        console.log(ma);
        console.log(new Object());
        console.log(Object.prototype.toString.call([]));
        console.log(Object.prototype, 'rwwwwww');
        console.log(Object.prototype.toString);
        var arr=[1,2,3];
       console.log(Object.prototype.toString.call(arr) );   // "[object Array]"
      console.log(Array.prototype.toString.call(arr));    // "1,2,3"

    //============================================================

       function fn(){
           console.log('fn函数');
       }
    
       console.log(typeof fn,'判断函数类型');
    </script>
</body>

</html>